/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Home.java
 *
 * Created on 16/09/2010, 17:11:05
 */

package javatarefasclient.interfaces;

import javax.swing.JFrame;

/**
 *
 * @author alex.silva
 */
public class Home extends javax.swing.JFrame {
    JFrame sobre ;

    /** Creates new form Home */
    public Home() {
        initComponents();
        sobre = new Sobre();
       
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        menuBar = new javax.swing.JMenuBar();
        menuArquivo = new javax.swing.JMenu();
        menuItemSair = new javax.swing.JMenuItem();
        menuAjuda = new javax.swing.JMenu();
        menuItemConteudo = new javax.swing.JMenuItem();
        menuItemSobre = new javax.swing.JMenuItem();
        menuFerramentas = new javax.swing.JMenu();
        menuItemPesquisar = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        menuItemHistorico = new javax.swing.JMenuItem();
        menuItemTags = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        menuItemOpcoes = new javax.swing.JMenuItem();
        menuFerramentas1 = new javax.swing.JMenu();
        menuItemPesquisar1 = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        menuFerramentas2 = new javax.swing.JMenu();
        menuItemPesquisar2 = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        menuArquivo.setText("Arquivo");

        menuItemSair.setText("Sair");
        menuItemSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSairActionPerformed(evt);
            }
        });
        menuArquivo.add(menuItemSair);

        menuBar.add(menuArquivo);

        menuAjuda.setText("Ajuda");

        menuItemConteudo.setText("Conteúdo");
        menuAjuda.add(menuItemConteudo);

        menuItemSobre.setText("Sobre");
        menuItemSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSobreActionPerformed(evt);
            }
        });
        menuAjuda.add(menuItemSobre);

        menuBar.add(menuAjuda);

        menuFerramentas.setText("Ferramentas");

        menuItemPesquisar.setText("Pesquisar");
        menuFerramentas.add(menuItemPesquisar);
        menuFerramentas.add(jSeparator1);

        menuItemHistorico.setText("Histórico");
        menuFerramentas.add(menuItemHistorico);

        menuItemTags.setText("Tags");
        menuFerramentas.add(menuItemTags);
        menuFerramentas.add(jSeparator2);

        menuItemOpcoes.setText("Preferências");
        menuFerramentas.add(menuItemOpcoes);

        menuBar.add(menuFerramentas);

        menuFerramentas1.setText("Gerência");

        menuItemPesquisar1.setText("Relatórios");
        menuFerramentas1.add(menuItemPesquisar1);
        menuFerramentas1.add(jSeparator3);

        menuBar.add(menuFerramentas1);

        menuFerramentas2.setText("Administração");

        menuItemPesquisar2.setText("Relatórios");
        menuFerramentas2.add(menuItemPesquisar2);
        menuFerramentas2.add(jSeparator4);

        menuBar.add(menuFerramentas2);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 677, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 583, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menuItemSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSairActionPerformed
        System.exit(0);
    }//GEN-LAST:event_menuItemSairActionPerformed

    private void menuItemSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSobreActionPerformed
        // TODO add your handling code here:
        this.exibeSobre();
    }//GEN-LAST:event_menuItemSobreActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Home().setVisible(true);
            }
        });
    }

    private void exibeSobre(){
        sobre.setVisible(true);
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JMenu menuAjuda;
    private javax.swing.JMenu menuArquivo;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenu menuFerramentas;
    private javax.swing.JMenu menuFerramentas1;
    private javax.swing.JMenu menuFerramentas2;
    private javax.swing.JMenuItem menuItemConteudo;
    private javax.swing.JMenuItem menuItemHistorico;
    private javax.swing.JMenuItem menuItemOpcoes;
    private javax.swing.JMenuItem menuItemPesquisar;
    private javax.swing.JMenuItem menuItemPesquisar1;
    private javax.swing.JMenuItem menuItemPesquisar2;
    private javax.swing.JMenuItem menuItemSair;
    private javax.swing.JMenuItem menuItemSobre;
    private javax.swing.JMenuItem menuItemTags;
    // End of variables declaration//GEN-END:variables

}
